import{Zn as e,g as t,k as n,mt as r,qt as i,v as a,wt as o,xt as s}from"./CIxmKYxc4tZcJF.js";import{t as c}from"./CcPZ0n9m3smUKN.js";var l=`p.h1.h2.h3.h4.h5.h6.ul.ol.li.dl.dt.dd.blockquote.pre.hr.figure.figcaption.div.a.b.strong.i.em.u.s.strike.del.ins.code.kbd.samp.var.tt.mark.abbr.sub.sup.small.span.br.img.table.thead.tbody.tfoot.tr.th.td.caption`.split(`.`),u={a:[`href`,`title`],img:[`src`,`alt`,`title`,`width`,`height`],abbr:[`title`],ol:[`start`],th:[`colspan`,`rowspan`,`scope`],td:[`colspan`,`rowspan`]};function d(e,t={}){return c(e,{allowedTags:t.allowedTags??l,allowedAttrs:t.allowedAttrs??u,allowDataImages:t.allowDataImages??!0})}var f=n({__name:`oui-text`,props:{responsiveTables:{type:Boolean},density:{default:`ui`},html:{},trusted:{type:Boolean},as:{default:`div`}},setup(n){let c=n,l=t(()=>({"_responsive-tables":c.responsiveTables,_reading:c.density===`reading`,_compact:c.density===`compact`})),u=t(()=>{if(c.html!=null)return c.trusted?c.html:d(c.html)});return(t,c)=>u.value==null?(r(),a(o(n.as),{key:1,class:e([`oui-text`,l.value])},{default:i(()=>[s(t.$slots,`default`)]),_:3},8,[`class`])):(r(),a(o(n.as),{key:0,class:e([`oui-text`,l.value]),innerHTML:u.value},null,8,[`class`,`innerHTML`]))}});export{f as t};